package database.demo;

import android.content.ContentValues;
import android.text.format.DateFormat;

/**
 * Store information about a passenger.
 */
public class Extras {
	private String ID;
	private String name;
	private String description;
	private double mature;
	private double child;
	

	public Extras(String ID, String name, String description, double mature, double child) {
		super();
		this.ID =ID;
		this.name = name;
		this.description = description;
		this.mature = mature;
		this.child = child;
	}
	public Extras() {
		super();
	}
	
	public String getID() {
		return ID;
	}
	
	public String getName() {
		return name;
	}
	
	public String getDescription() {
		return description;
	}
	
	public double getMature() {
		return mature;
	}
	
	public double getChild() {
		return child;
	}
	
	public ContentValues getValues(){
		ContentValues values = new ContentValues();
		values.put(DataBaseWrapperExtras.EXTRAS_ID, ID);
		values.put(DataBaseWrapperExtras.EXTRAS_NAME, name);
		values.put(DataBaseWrapperExtras.EXTRAS_DESCRIPTION, description);
		values.put(DataBaseWrapperExtras.EXTRAS_MATURE_PRICE, mature);
		values.put(DataBaseWrapperExtras.EXTRAS_CHILD_PRICE, child);
		
		return values;
	}
	
	
	public void setID(String iD) {
		ID = iD;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setMature(double mature) {
		this.mature = mature;
	}
	
	public void setChild(double child) {
		this.child = child;
	}
	
	
	@Override
	public String toString() {
		return name + " - "+ ID;
	}
}
